package com.ruoyi.order.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购买详情对象 shopping_purchase
 * 
 * @author ruoyi
 * @date 2024-03-09
 */
public class ShoppingPurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商户订单编号 */
    @Excel(name = "商户订单编号")
    private String merchantOrderNumber;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;

    /** 商品id */
    @Excel(name = "商品id")
    private Integer productId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 订单状态（0待付、1正在交易、2订单完成、3订单取消、4买家违约） */
    @Excel(name = "订单状态", readConverterExp = "0=待付、1正在交易、2订单完成、3订单取消、4买家违约")
    private Integer orderStatus;

    /** 订单押金 */
    @Excel(name = "订单押金")
    private BigDecimal orderDeposit;

    /** wx订单号 */
    @Excel(name = "wx订单号")
    private String orderWxGoods;

    public void setMerchantOrderNumber(String merchantOrderNumber) 
    {
        this.merchantOrderNumber = merchantOrderNumber;
    }

    public String getMerchantOrderNumber() 
    {
        return merchantOrderNumber;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setProductId(Integer productId) 
    {
        this.productId = productId;
    }

    public Integer getProductId() 
    {
        return productId;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setOrderStatus(Integer orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public Integer getOrderStatus() 
    {
        return orderStatus;
    }
    public void setOrderDeposit(BigDecimal orderDeposit) 
    {
        this.orderDeposit = orderDeposit;
    }

    public BigDecimal getOrderDeposit() 
    {
        return orderDeposit;
    }
    public void setOrderWxGoods(String orderWxGoods) 
    {
        this.orderWxGoods = orderWxGoods;
    }

    public String getOrderWxGoods() 
    {
        return orderWxGoods;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("merchantOrderNumber", getMerchantOrderNumber())
            .append("userId", getUserId())
            .append("productId", getProductId())
            .append("createdTime", getCreatedTime())
            .append("orderStatus", getOrderStatus())
            .append("orderDeposit", getOrderDeposit())
            .append("orderWxGoods", getOrderWxGoods())
            .toString();
    }
}
